package com.hliushi.chain.example01_wrong;

/**
 * @author: hliushi
 * @date: 2023/2/16 22:03
 **/
public class _Client {

    public static void main(String[] args) {
        int amount = 10000;
        // 先找专员张飞审批
        Staff staff = new Staff("张飞");
        if (!staff.approve(amount)) {
            // 被驳回。再找经理关羽审批
            Manger manger = new Manger("关羽");
            if (!manger.approve(amount)) {
                // 还是被驳回。只能找老大了
                CFO cfo = new CFO("刘备");
                cfo.approve(amount);
            }
        }
    }
}
